﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CAHRS
{
    class CAHRS
    {
        static void Main(string[] args)
        {
            int x = 0x00A1;
            Console.WriteLine(x);

            string listofBear = "Vinh, Thuy, Thao, Quyen, Phung, Tram.";
            string[] bear = listofBear.Split(' ', ',', '.');
            Console.WriteLine("Available beers are:");
            foreach (string beer in bear)
            {
                Console.WriteLine(beer);
            }
            string chuoitrim = "   nguyen     ,van   vinh   ,,,,,";
            string result = chuoitrim.Trim();
            string result2 = chuoitrim.Trim(',',' ');
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine(result);

            Console.WriteLine(result2);

            string chuoicon = "nguyen";
            char ch = chuoicon[0];
            Console.WriteLine(duplicateChar(ch, 10));

        }
        public static string duplicateChar(char ch, int count)
        {
            string result = "";
            for (int i = 0; i < count; i++)
            {
                result += ch;
            }
            return result;
        }
    }
}
